<div class="modal-dialog">
    <div class="modal-content">
        <form role="form" method="post" id="addForm" action="{:U('GoodsOrder/send_package')}">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">确认发货</h4>
            </div>
            <div class="modal-body">
                <input type="hidden" name="id" value="{$order.id}"/>
                <div class="form-group">
                    <label for="express_code">快递单号</label>
                    <input type="text" class="form-control" name="express_code" id="express_code" />
                </div>

            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-danger">确认发货</button>
            </div>
        </form>
        <script type="text/javascript">
            $("#addForm").submit(function (e) {
                var express_code = $("#express_code").val();
                if (!express_code || express_code.length < 1) {
                    tips("请填写快递单号", "danger");
                    return false;
                }
            });
        </script>
    </div>
</div>